home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'UPTImageCombo.pas' rev: 3.00
-
- #ifndef UPTImageComboHPP
- #define UPTImageComboHPP
- #include <Menus.hpp>
- #include <StdCtrls.hpp>
- #include <Dialogs.hpp>
- #include <Forms.hpp>
- #include <Controls.hpp>
- #include <Graphics.hpp>
- #include <Classes.hpp>
- #include <SysUtils.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Uptimagecombo
- {
- //-- type declarations -------------------------------------------------------
- class DELPHICLASS TPTImageComboItem;
- class DELPHICLASS TPTCustomImageCombo;
- class DELPHICLASS TPTCustomCombobox;
- typedef void __fastcall (__closure *TPTDeleteComboItemEvent)(System::TObject* aSender, void * aItem)
- ;
-
- class PASCALIMPLEMENTATION TPTCustomCombobox : public Stdctrls::TCustomComboBox
- {
- typedef Stdctrls::TCustomComboBox inherited;
-
- private:
- TPTDeleteComboItemEvent mOnDeleteItemProc;
- Classes::TNotifyEvent mOnCloseUpProc;
- Classes::TNotifyEvent mOnSelEndCancelProc;
- Classes::TNotifyEvent mOnSelEndOkProc;
- void __fastcall SetItemHeight2(int aValue);
- HIDESBASE MESSAGE void __fastcall CNCommand(Messages::TWMCommand &aMsg);
- HIDESBASE MESSAGE void __fastcall WMDeleteItem(Messages::TWMDeleteItem &amsg);
-
- protected:
- virtual void __fastcall DeleteItem(void * aItem);
- DYNAMIC void __fastcall CloseUp(void);
- DYNAMIC void __fastcall SelEndCancel(void);
- DYNAMIC void __fastcall SelEndOk(void);
- __property TPTDeleteComboItemEvent OnDeleteItem = {read=mOnDeleteItemProc, write=mOnDeleteItemProc}
- ;
- __property Classes::TNotifyEvent OnCloseUp = {read=mOnCloseUpProc, write=mOnCloseUpProc};
- __property Classes::TNotifyEvent OnSelEndCancel = {read=mOnSelEndCancelProc, write=mOnSelEndCancelProc
- };
- __property Classes::TNotifyEvent OnSelEndOk = {read=mOnSelEndOkProc, write=mOnSelEndOkProc};
- __property ItemHeight = {write=SetItemHeight2};
- public:
- /* TCustomComboBox.Create */ __fastcall virtual TPTCustomCombobox(Classes::TComponent* AOwner) : Stdctrls::
- TCustomComboBox(AOwner) { }
- /* TCustomComboBox.Destroy */ __fastcall virtual ~TPTCustomCombobox(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TPTCustomCombobox(HWND ParentWindow) : Stdctrls::TCustomComboBox(
- ParentWindow) { }
-
- };
-
- typedef void __fastcall (__closure *TPTDeleteImageComboItemEvent)(System::TObject* aSender, TPTImageComboItem*
- aItem);
-
- typedef void __fastcall (__closure *TPTImageComboGetItemDataEvent)(System::TObject* aSender, TPTImageComboItem*
- aItem);
-
- class PASCALIMPLEMENTATION TPTCustomImageCombo : public Uptimagecombo::TPTCustomCombobox
- {
- typedef Uptimagecombo::TPTCustomCombobox inherited;
-
- private:
- bool mAutoSizeHeight;
- Controls::TImageList* mImageList;
- int mIndentPixels;
- TPTDeleteImageComboItemEvent mOnDeleteImageComboItemProc;
- TPTImageComboGetItemDataEvent mOnGetItemDataProc;
- bool mfInWMSetFont;
- TPTImageComboItem* __fastcall GetImageComboItem(int index);
- HIDESBASE MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &aMsg);
- HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &aMsg);
- MESSAGE void __fastcall WMSetFont(Messages::TWMSetFont &aMsg);
-
- protected:
- void __fastcall DoAutoSize(HFONT hf);
- DYNAMIC void __fastcall AutoSize(HFONT hf);
- void __fastcall SetIndentPixels(int aValue);
- void __fastcall SetImageList(const Controls::TImageList* aValue);
- virtual void __fastcall CreateParams(Controls::TCreateParams &p);
- virtual void __fastcall CreateWnd(void);
- virtual void __fastcall DestroyWnd(void);
- virtual void __fastcall DrawItem(int aIndex, const Windows::TRect &aRect, Stdctrls::TOwnerDrawState
- aState);
- virtual void __fastcall Notification(Classes::TComponent* aComponent, Classes::TOperation operation
- );
- virtual void __fastcall DeleteItem(void * aItem);
- virtual void __fastcall GetItemData(TPTImageComboItem* AItem);
- __property Text = {stored=false};
- __property bool AutoSizeHeight = {read=mAutoSizeHeight, write=mAutoSizeHeight, default=1};
- __property int IndentPixels = {read=mIndentPixels, write=SetIndentPixels, default=12};
- __property Controls::TImageList* ImageList = {read=mImageList, write=SetImageList};
- __property TPTDeleteImageComboItemEvent OnDeleteItem = {read=mOnDeleteImageComboItemProc, write=mOnDeleteImageComboItemProc
- };
- __property TPTImageComboGetItemDataEvent OnGetItemData = {read=mOnGetItemDataProc, write=mOnGetItemDataProc
- };
-
- public:
- __fastcall virtual TPTCustomImageCombo(Classes::TComponent* aOwner);
- __fastcall virtual ~TPTCustomImageCombo(void);
- virtual TPTImageComboItem* __fastcall AddItem(System::AnsiString aCaption, int aImageIndex, int aIndent
- );
- __property TPTImageComboItem* ImageComboItem[int index] = {read=GetImageComboItem};
- public:
- /* TWinControl.CreateParented */ __fastcall TPTCustomImageCombo(HWND ParentWindow) : Uptimagecombo::
- TPTCustomCombobox(ParentWindow) { }
-
- };
-
- class PASCALIMPLEMENTATION TPTImageComboItem : public System::TObject
- {
- typedef System::TObject inherited;
-
- protected:
- TPTCustomImageCombo* mOwner;
- int mItemIndex;
- int mIndex;
- int mIndent;
- int mImageIndex;
- int mOverlayIndex;
- System::AnsiString mCaption;
- int mTag;
- void *mData;
- void __fastcall SetIndent(int aValue);
- void __fastcall SetImageIndex(int aValue);
- void __fastcall SetCaption(const System::AnsiString aValue);
- void __fastcall SetOverlayIndex(int aValue);
-
- public:
- __fastcall TPTImageComboItem(TPTCustomImageCombo* aOwner);
- __fastcall virtual ~TPTImageComboItem(void);
- __property int Index = {read=mIndex, nodefault};
- __property int Indent = {read=mIndent, write=SetIndent, nodefault};
- __property int ImageIndex = {read=mImageIndex, write=SetImageIndex, nodefault};
- __property int OverlayIndex = {read=mOverlayIndex, write=SetOverlayIndex, nodefault};
- __property System::AnsiString Caption = {read=mCaption, write=SetCaption};
- __property void * Data = {read=mData, write=mData};
- __property int Tag = {read=mTag, write=mTag, nodefault};
- };
-
- class DELPHICLASS TPTCombobox;
- class PASCALIMPLEMENTATION TPTCombobox : public Uptimagecombo::TPTCustomCombobox
- {
- typedef Uptimagecombo::TPTCustomCombobox inherited;
-
- __published:
- __property Style ;
- __property Color ;
- __property Ctl3D ;
- __property DragMode ;
- __property DragCursor ;
- __property DropDownCount ;
- __property Enabled ;
- __property Font ;
- __property ItemHeight ;
- __property Items ;
- __property MaxLength ;
- __property ParentColor ;
- __property ParentCtl3D ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property Sorted ;
- __property TabOrder ;
- __property TabStop ;
- __property Text ;
- __property Visible ;
- __property OnChange ;
- __property OnClick ;
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnDrawItem ;
- __property OnDropDown ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property OnMeasureItem ;
- __property OnStartDrag ;
- __property OnDeleteItem ;
- __property OnCloseUp ;
- __property OnSelEndCancel ;
- __property OnSelEndOk ;
- public:
- /* TCustomComboBox.Create */ __fastcall virtual TPTCombobox(Classes::TComponent* AOwner) : Uptimagecombo::
- TPTCustomCombobox(AOwner) { }
- /* TCustomComboBox.Destroy */ __fastcall virtual ~TPTCombobox(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TPTCombobox(HWND ParentWindow) : Uptimagecombo::TPTCustomCombobox(
- ParentWindow) { }
-
- };
-
- class DELPHICLASS TPTImageCombo;
- class PASCALIMPLEMENTATION TPTImageCombo : public Uptimagecombo::TPTCustomImageCombo
- {
- typedef Uptimagecombo::TPTCustomImageCombo inherited;
-
- __published:
- __property AutoSizeHeight ;
- __property IndentPixels ;
- __property ImageList ;
- __property OnDeleteItem ;
- __property OnCloseUp ;
- __property OnSelEndCancel ;
- __property OnSelEndOk ;
- __property OnGetItemData ;
- __property Color ;
- __property Ctl3D ;
- __property DragMode ;
- __property DragCursor ;
- __property DropDownCount ;
- __property Enabled ;
- __property Font ;
- __property ItemHeight ;
- __property MaxLength ;
- __property ParentColor ;
- __property ParentCtl3D ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property Sorted ;
- __property TabOrder ;
- __property TabStop ;
- __property Visible ;
- __property OnChange ;
- __property OnClick ;
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnDrawItem ;
- __property OnDropDown ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property OnMeasureItem ;
- __property OnStartDrag ;
- public:
- /* TPTCustomImageCombo.Create */ __fastcall virtual TPTImageCombo(Classes::TComponent* aOwner) : Uptimagecombo::
- TPTCustomImageCombo(aOwner) { }
- /* TPTCustomImageCombo.Destroy */ __fastcall virtual ~TPTImageCombo(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TPTImageCombo(HWND ParentWindow) : Uptimagecombo::TPTCustomImageCombo(
- ParentWindow) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Uptimagecombo */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Uptimagecombo;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // UPTImageCombo
-